package com.meituan.sdk.model.pms.esports.syncOnlineStatus;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 电竞设备是否在线状态同步
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/esports/syncOnlineStatus",
    businessId = 57,
    apiVersion = "10026",
    apiName = "sync_online_status",
    needAuth = true
)
public class SyncOnlineStatusRequest implements MeituanRequest<SyncOnlineStatusResponse> {
    /**
    * <p data-diff-id="ct-diff-id-e6653e44-f4c9-4409-b4a9-842491ae1d7f">酒店ID</p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-649efc92-6bd5-4290-b45b-4c17d37d7931">序列号</p>
    */
    @NotEmpty(message = "serialNumbers不能为空")
    @SerializedName("serialNumbers")
    private List<String> serialNumbers;
    /**
    * <p data-diff-id="ct-diff-id-c69bdf54-6072-452e-8ecb-e09bfd08dc18">是否在线</p>
    */
    @NotNull(message = "isOnline不能为空")
    @SerializedName("isOnline")
    private Boolean isOnline;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public List<String> getSerialNumbers() {
        return serialNumbers;
    }
    public void setSerialNumbers(List<String> serialNumbers) {
        this.serialNumbers = serialNumbers;
    }
    public Boolean getIsOnline() {
        return isOnline;
    }
    public void setIsOnline(Boolean isOnline) {
        this.isOnline = isOnline;
    }


    @Override
    public MeituanResponse<SyncOnlineStatusResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<SyncOnlineStatusResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "SyncOnlineStatusRequest{" + "hotelId=" + hotelId + "," + "serialNumbers=" + serialNumbers + "," + "isOnline=" + isOnline + "}";
    }
}
